﻿using Abp.Runtime.Caching;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AVIS.OutBound.Contents.Cache
{
    public static class ContentCacheExtensions
    {
        /// <summary>
        /// CMS内容的缓存对象
        /// </summary>
        /// <param name="cacheManager"></param>
        /// <returns></returns>
        public static ITypedCache<string, IList<ContentCacheItem>> GetContentCache(this ICacheManager cacheManager)
        {
            return cacheManager.GetCache<string, IList<ContentCacheItem>>(ContentCacheItem.CacheName);
        }
    }
}
